package com.bw.medical.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bw.medical.entity.DiagnoseEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bw.medical.entity.DockerLevelEntity;
import com.bw.medical.vo.DiagnoseVo;
import com.bw.medical.vo.DoctorSumVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 诊断表 
 * 
 * @author wj
 * @email sunlightcs@gmail.com
 * @date 2021-08-22 21:39:10
 */
@Mapper
public interface DiagnoseDao extends BaseMapper<DiagnoseEntity> {
    //患者诊断记录
    IPage<DiagnoseEntity> getLists(@Param("page") Page<DockerLevelEntity> page, @Param("patientId")Integer patientId);
    //查看该医生诊断记录总和
    IPage<DoctorSumVo> getPlist(@Param("page")Page<DoctorSumVo> page, @Param("docterId")Integer docterId);

    IPage<DiagnoseEntity> sLists(@Param("page")Page<DockerLevelEntity> page, @Param("reportId")Integer reportId, @Param("docterId")Integer docterId, @Param("dateTime")String dateTime, @Param("patientName")String patientName, @Param("patientTel")String patientTel);

    DiagnoseVo info(@Param("reportId") Integer reportId);

    IPage<DiagnoseEntity> pingLi(@Param("page")Page<DockerLevelEntity> page,@Param("docterId") Integer docterId,@Param("dateTime")String dateTime);
}
